package com.ww.scm.valueObject.grid;

import java.util.ArrayList;
import java.util.List;


public class GridView {
    private String title;
    private List<HeadRow> headRows;
    private List<DataRow> dataRows;

    public GridView() {
        headRows = new ArrayList<HeadRow>();
        dataRows = new ArrayList<DataRow>();
    }

    public void addHeadRow(HeadRow headRow) {
        this.headRows.add(headRow);
    }

    public void addDataRow(DataRow dataRow) {
        this.dataRows.add(dataRow);
    }

    public void addHeadRows(List<HeadRow> headRows) {
        this.headRows.addAll(headRows);
    }

    public void addDataRows(List<DataRow> dataRows) {
        this.dataRows.addAll(dataRows);
    }

    public List<HeadRow> getHeadRows() {
        return headRows;
    }

    public List<DataRow> getDataRows() {
        return dataRows;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

}
